package com.hmall.api.config;

import com.hmall.api.fallback.ItemClientFallback;
import feign.Logger;
import org.springframework.context.annotation.Bean;

public class DefaultFeignConfig {
    @Bean
    public Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
/*
    @Bean
    public FeignUserInterceptor feignUserInterceptor(){
        return new FeignUserInterceptor();
    }
*/

    @Bean
    public ItemClientFallback itemFallbackFactory(){
        return new ItemClientFallback();
    }
}
